package edu.terapia.model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the identity_object_relationship database table.
 * 
 */
@Entity
@Table(name="identity_object_relationship")
public class IdentityObjectRelationship implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	@Column(name="`FROM`")
	private int from;

	private String name;

	@Column(name="`TO`")
	private int to;

	//bi-directional many-to-one association to IdentityObjectRelationshipType
	@ManyToOne
	@JoinColumn(name="IDENTITY_OBJECT_RELATIONSHIP_TYPE_ID")
	private IdentityObjectRelationshipType identityObjectRelationshipType;

	public IdentityObjectRelationship() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getFrom() {
		return this.from;
	}

	public void setFrom(int from) {
		this.from = from;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getTo() {
		return this.to;
	}

	public void setTo(int to) {
		this.to = to;
	}

	public IdentityObjectRelationshipType getIdentityObjectRelationshipType() {
		return this.identityObjectRelationshipType;
	}

	public void setIdentityObjectRelationshipType(IdentityObjectRelationshipType identityObjectRelationshipType) {
		this.identityObjectRelationshipType = identityObjectRelationshipType;
	}

}